home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '') . config.sh ;;
- esac
- outputfile=x25hosts.cf
- rm -f $outputfile.$$
- echo "Creating $outputfile (with variable substitutions)"
- if cat >$outputfile.$$ <<!GROK!THIS!
- # RCSid[] = "@(#)$Header: x25hosts.SH,v 3.0 86/09/26 10:14:04 pb Rel $"
- #
- ##################################################
- ##################################################
- ##############
- ############## configure for /etc/x25hosts
- ##############
- ##################################################
- ##################################################
-
- # the directory to search
-
- directory $datadir
-
- # add comment header
- comment hdr.file
-
- # output format
-
- output x25hosts uk.ac.
-
- # we only want X29 connections on JANET
-
- context X29 janet
- !GROK!THIS!
- then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
- then
- rm -f $outputfile.$$
- echo " " $outputfile not affected
- elif mv $outputfile.$$ $outputfile
- then
- echo " " $outputfile updated
- else
- echo "+++ " $outputfile left in $outputfile.$$
- fi
- else
- echo " " Failed to create $outputfile.$$
- fi
-